#ifndef INFO_DISPLAY_H
#define INFO_DISPLAY_H

#include "glprogressbar.h"

#include <GLee.h>
#include <string>

#include <FTGL/ftgl.h>

class InfoDisplay
{
    public:
        InfoDisplay();
        ~InfoDisplay();

        void render();

        void setVolume(int volume);
        void setCurrentTime(float curTime);
        void setTotalTime(float totalTime);
        void setProgress(float progress);
        void setTitle(const std::string& title);
        void setSize(int width, int height);

    private:
        std::string convertSecondsToTimeFormat(float seconds);

        int             m_Volume;
        float           m_Progress;
        float           m_TextScale;
        float           m_TextHeight;
        std::string     m_Title;
        std::string     m_CurrentTime;
        std::string     m_TotalTime;

        FTGLPolygonFont* m_pFont;

        float           m_Width;
        float           m_Height;
        float           m_UnitHeight;
        float           m_Margin;
        float           m_Spacing;

        GlProgressBar   m_ProgressBar;

};

#endif
